import type { IllnessTime } from '@/enum'
import { flagOptions, timeOptions } from '@/services/constants'

export const getIllnessTimeText = (value: IllnessTime) =>
  timeOptions.find((item) => item.value === value)?.label

export const getConsultFlagText = (value: 0 | 1) =>
  flagOptions.find((item) => item.value === value)?.label
